﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UI/Client/Site1.Master" AutoEventWireup="true"
    CodeBehind="ScheduleDetails.aspx.cs" Inherits="OnlineRailway.UI.Client.Fare" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style2
        {
            color: red;
            font-weight: bold;
            font-size: large;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <ul class="hd line">
        <li class="left space"></li>
        <li class="center">
            <h3 class="tt_news">
                Schedule Details</h3>
        </li>
        <li>
            <br />
            <br />
            <br />
            <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False" DataKeyNames="ScheduleID"
                DataSourceID="SqlDataSource1" Height="50px" Width="217px" CellPadding="4" ForeColor="#333333"
                GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                <EditRowStyle BackColor="#999999" />
                <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
                <Fields>
                    <asp:BoundField DataField="ScheduleID" HeaderText="ScheduleID" InsertVisible="False"
                        ReadOnly="True" SortExpression="ScheduleID" />
                    <asp:BoundField DataField="ScheduleName" HeaderText="ScheduleName" SortExpression="ScheduleName" />
                    <asp:BoundField DataField="StartStation" HeaderText="StartStation" SortExpression="StartStation" />
                    <asp:BoundField DataField="EndStation" HeaderText="EndStation" SortExpression="EndStation" />
                    <asp:BoundField DataField="BetweenStation" HeaderText="BetweenStation" SortExpression="BetweenStation" />
                    <asp:BoundField DataField="Distances" HeaderText="Distances" SortExpression="Distances" />
                    <asp:BoundField DataField="LongTime" HeaderText="LongTime" SortExpression="LongTime" />
                    <asp:BoundField DataField="Fare" HeaderText="Fare" SortExpression="Fare" />
                    <asp:BoundField DataField="Description" HeaderText="Description" SortExpression="Description" />
                    <asp:BoundField DataField="CreateDate" HeaderText="CreateDate" SortExpression="CreateDate" />
                    <asp:BoundField DataField="Status" HeaderText="Status" SortExpression="Status" />
                </Fields>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            </asp:DetailsView>
            <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:RailwayOnlineConnectionString6 %>"
                SelectCommand="SELECT * FROM [TrainSchedules] WHERE ([ScheduleID] = @ScheduleID)">
                <SelectParameters>
                    <asp:QueryStringParameter Name="ScheduleID" QueryStringField="id" Type="Int32" />
                </SelectParameters>
            </asp:SqlDataSource>
            <asp:DetailsView ID="DetailsView2" runat="server" Height="50px" Width="217px" CellPadding="4"
                ForeColor="#333333" GridLines="None">
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                <CommandRowStyle BackColor="#E2DED6" Font-Bold="True" />
                <EditRowStyle BackColor="#999999" />
                <FieldHeaderStyle BackColor="#E9ECF1" Font-Bold="True" />
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            </asp:DetailsView>
            <br />
            <span class="style2">Please choose your seat:<br />
            </span>
            <table class="style1" align="left" cellspacing="10">
                <tr>
                    <td>
                        Class:
                    </td>
                    <td align="left">
                        <asp:DropDownList ID="ddlClass" runat="server">
                            <asp:ListItem>AC</asp:ListItem>
                            <asp:ListItem>FC</asp:ListItem>
                            <asp:ListItem>SL</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <tr>
                        <td>
                            Number of Seat:
                        </td>
                        <td align="left">
                            <asp:TextBox ID="txtSeatNo" runat="server"></asp:TextBox>
                        </td>
                        <tr>
                            <td>
                                <asp:Button ID="btnAccept" runat="server" Text="Accept" 
                                    onclick="btnAccept_Click" />
                            </td>
                            <td align="left">
                                <asp:Button ID="btnBook" runat="server" Text="Book Ticket" 
                                    onclick="btnCancel_Click" />
                            </td>
                        </tr>
                    </tr>
            </table>
        </li>
        <br />
        <asp:Label ID="lblTotal" runat="server" class="style2"></asp:Label>
        <li>
            </ul>
</asp:Content>
